package com.fit.dao.coach;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.coach.Coach;


public interface CoachDAO {

	@CommitAfter
	public boolean save(Coach newCoach);

	@CommitAfter
	public boolean delete(Coach coach);

	@CommitAfter
	public boolean update(Coach coach);

	public List<Coach> findAll();

	public Coach findByNameAndSurname(String name, String surname);

	public Coach findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
}
